package com.ganmiao.server.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ganmiao.entity.BaseColumns;
import com.ganmiao.server.sys.validated.Update;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("商城用户")
@TableName(value = "mall_user")
public class MallUser extends BaseColumns implements Serializable {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("账号")
    private String userAccount;

    @ApiModelProperty("密码")
    private String userPassword;

    @ApiModelProperty("unionId")
    private String unionId;

    @ApiModelProperty("公众号openId")
    private String openId;

    @ApiModelProperty("小程序openId")
    private String mpOpenId;

    @ApiModelProperty("app openId")
    private String appOpenId;

    @ApiModelProperty("帐号状态 (1:正常 9:删除/失效)")
    private String status;

    @ApiModelProperty("手机号")
    private String phoneNum;

    @ApiModelProperty("性别(0: 女1:男 2:未知)")
    private String sex;

    @ApiModelProperty("头像")
    private String headPic;

    @ApiModelProperty("昵称")
    private String nickName;

    @ApiModelProperty("第三方用户id")
    private String thirdUserId;


    @ApiModelProperty("用户编码")
    private String userCode;
}

